<script setup>
let list = ref([
  {
    title: '提升监管效率',
    desc: '自动化处理保障房的申请、分配和管理事务，减轻政府负担，提高监管效率',
    icon: 'images/banner/solution/3.png'
  },
  {
    title: '优化住户体验',
    desc: '提供透明化的申请和分配流程，确保住户公平地享受住房福利，提升住户满意度',
    icon: 'images/banner/solution/10.png'
  },
  {
    title: '资源精准配置',
    desc: '智能化房源管理，优化保障房资源的合理分配，减少资源浪费',
    icon: 'images/banner/solution/1.png'
  },
  {
    title: '增强安全与合规',
    desc: '确保数据安全，符合法规要求，提升政府和住户的信任度',
    icon: 'images/banner/solution/6.png'
  },
  {
    title: '信息透明与沟通',
    desc: '建立透明的沟通机制，实时反馈住户需求，提升管理透明度',
    icon: 'images/banner/solution/9.png'
  },
  {
    title: '支持政策灵活调整',
    desc: '根据政策变化，灵活调整管理功能，确保政策执行的精准与有效',
    icon: 'images/banner/solution/11.png'
  },
  {
    title: '协同多部门管理',
    desc: '实现多部门之间的数据共享与协调，提高整体管理效率',
    icon: 'images/banner/solution/7.png'
  },
  {
    title: '拓展服务覆盖',
    desc: '引入多样化的社会服务资源，全面提升保障房住户的生活质量',
    icon: 'images/banner/solution/8.png'
  }
])
let currentIndex = ref(null)
</script>

<template>
  <section class="ym1000 flex flex-col justify-center items-center mt-100px">
    <div class="600 text-40px leading-56px mb-60px">方案价值</div>
    <div style="width: 1200px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center">
      <div class="item" v-for="(v, i) in list" :key="i" @mouseover="currentIndex = i" @mouseout="currentIndex = null" :class="{ active: currentIndex == i }">
        <img :src="v.icon" alt="" class="w-60px h-60px" />
        <div class="tit 500 text-24px leading-33px mt-16px">{{ v.title }}</div>
        <div class="desc mt-24px 400 text-18px leading-25px">{{ v.desc }}</div>
      </div>
    </div>
  </section>
</template>

<style scoped>
.ym1000 {
}

@keyframes item-animation {
  0% {
    opacity: 1;
    transform: translateY(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(-30px);
  }
}

.active {
  position: relative;
  width: 281px;
  height: 310px;
  background: linear-gradient(180deg, #e8efff 0%, #ffffff 26%, #ffffff 100%) !important;
  box-shadow: 0px 2px 20px 4px rgba(151, 157, 181, 0.1);
  border-radius: 8px;
  animation: item-animation 1s forwards;
  /* border-top:6px solid #145AF1; */
}
.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 281px;
  height: 5px;
  background: #145af1;
}
.item {
  overflow: hidden;
  margin-top: 20px;
  width: 281px;
  height: 310px;
  background: #f8faff;
  border-radius: 8px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tit {
  font-weight: 600;
}
.desc {
  color: #777777;
  font-weight: 400;
}
</style>
